from abc import ABC, abstractmethod

class AudioSource(ABC):
    """音频源基类"""

    def __init__(self):
        self.audio_queue = None
        self.rate = None

    @abstractmethod
    def start(self):
        """开始音频采集"""
        pass

    @abstractmethod
    def stop(self):
        """停止音频采集"""
        pass